<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>修改icon图片颜色</title>
    <style>
        .icon_box {
            margin: 100px auto 50px auto;
        }

        .icon {
            display: inline-block;
            width: 17px;
            height: 30px;
            overflow: hidden;
        }

        .icon-del {
            background: url(images/back.png) no-repeat center;
        }

        .icon>.icon {
            position: relative;
            left: -20px;
            border-right: 20px solid transparent;
            /*下文注意点 2 有解释*/
            -webkit-filter: drop-shadow(20px 0);
            filter: drop-shadow(20px 0);
            color: red;
        }
        /*箭头向上*/

        .map_icon {
            display: inline-block;
            width: 91px;
            height: 93px;
            overflow: hidden;
        }

        .micon {
            background: url(images/icon_service.png) no-repeat center;
        }

        .map_icon>.map_icon {
            position: relative;
            left: -75px;
            border-right: 20px solid transparent;
            -webkit-filter: drop-shadow(75px 0);
            filter: drop-shadow(75px 0);
            color: greenyellow;
        }

        .arrow-up {
            width: 0;
            height: 0;
            border-bottom: 30px solid #f0f;
            border-right: 30px solid transparent;
            border-left: 30px solid transparent;
            margin-bottom: 50px;
        }


        .arrow-left {
            width: 0;
            height: 0;
            border-right: 30px solid skyblue;
            border-top: 30px solid transparent;
            border-bottom: 30px solid transparent;
            margin-bottom: 50px;
        }

        .arrow-right {
            width: 0;
            height: 0;
            border-left: 30px solid #0066cc;
            border-top:30px solid transparent;
            border-bottom:30px solid transparent;
            margin-bottom: 50px;

        }
        /*箭头向下*/
        .arrow-down {
            width: 0;
            height: 0;
            border-left: 30px solid transparent;
            border-right: 30px solid transparent;
            border-top: 30px solid #0066cc;
        }
    </style>
</head>

<body>
    <div class="icon_box">
        <p>
            <strong>原始图标</strong>
        </p>
        <i class="icon icon-del"></i>
        <p>
            <strong>可以变色的图标</strong>
        </p>
        <i class="icon">
            <i class="icon icon-del"></i>
        </i>
        <p>地图图标</p>
        <i class="map_icon micon"></i>
        <h2>可以变色的图标啊</h2>
        <i class="map_icon">
            <i class="micon map_icon"></i>
        </i>
    </div>




    <p>上下箭头</p>
    <div class="arrow-up"></div>
    <div class="arrow-left"></div>
    <div class="arrow-right"></div>
    <div class="arrow-down"></div>
</body>

</html>